package com.blog.cloud.auth.oauth.enums.scope;

import lombok.Getter;
import lombok.RequiredArgsConstructor;

@Getter
@RequiredArgsConstructor
public enum AuthWechatMpScope implements AuthScope {
    SNSAPI_USERINFO("snsapi_userinfo", "弹出授权页面，可通过openid拿到昵称、性别、所在地。并且， 即使在未关注的情况下，只要用户授权，也能获取其信息", true),
    SNSAPI_BASE("snsapi_base", "不弹出授权页面，直接跳转，只能获取用户openid", false);

    private final String scope;
    private final String description;
    private final boolean isDefault;

    @Override
    public String getScope() {
        return "";
    }

    @Override
    public boolean isDefault() {
        return false;
    }
}
